<template>
  <div id="app">
    <HelloWorld></HelloWorld>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue';
export default {
  name: 'App',
  components: {
    HelloWorld
  },
  mounted() {
    // 绑定事件
    this.bus.$on("show", (e) => {
      console.log("触发了show", e)
    })
    // 绑定事件
    this.bus.$on("add", (e) => {
      console.log("触发了add")
    })
  },
  methods: {
  }
}
</script>

<style></style>
